#ifndef __RND__
#define __RND__
#include <math.h>
#include <stdio.h>
#include <stdlib.h>

/**
   initialize random seed
 */
void rnd_init();

/**
   pseudo random uniform dist [0,1)
 */
double rnd_uniform();

/**
   pseudo random exp. dist [0, +inf)
 */
double rnd_exp(double rate);

#endif
